function [longname,unit] = get_longname(varname)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Returns a long name and unit of the corresponding variable
% date. The function reads information from AWQ_parameters.xls 
%
% INPUT: 
%        - varname  :  parameter name as in AWQ_parameters.xls  (string)
% OUTPUT:
%        - longname : parameter long name 
%        - unit     : parameter unit
%        
% Author: Benedicte Pasquer, IMOS/eMII (http://imos.org.au/)
% email: benedicte.pasquer@utas.edu.au
% May 2013   
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

currentdir = pwd ;
field_head = importdata(fullfile(currentdir,'AWQ_Parameter.xls'));

longname = field_head(strcmp(varname,field_head(:,2)),4);
unit = field_head(strcmp(varname,field_head(:,2)),3);

